
#include "ChangeDetection/include/ChangeDetectionAgentWorldModel.h"

#include "World/World.h"

//static int PIXELS_FROM_EDGE_RESET = 50; //if an agent gets close to the edge (east) it needs to be reset

ChangeDetectionAgentWorldModel::ChangeDetectionAgentWorldModel() {
	//_sensors = NULL;
	//_ditchSensor = NULL;
	swarmTime = 0;
	organismTime = 0;
	penalty = 0;
	ditchCheck = false;
    xStart = -1;
    wrapAround = false;
    currentCluster = -1; //maybe -1 would be better, but this should look neater and shouldn't really matter
    wrapCount = 0;

    historySize = 0;
    statisticalProb = 0;
    sensorCount = 0;
    clusterCount = 0;

    fitnessWrapAround = false;
    xCoordinateBeforeWrap = 0;
    distanceTraveled = 0;
    distanceTraveledLastIteration = 0;

    //Point2d previousPos = Point2d;

    //added for advanced evolution:


}

ChangeDetectionAgentWorldModel::~ChangeDetectionAgentWorldModel() {
}

void ChangeDetectionAgentWorldModel::setWrapAround(bool newValue){
	wrapAround = newValue;
}
